package material.strategy;

/**
 * 黄头鸭--会飞也会咕咕的叫
 */
public class YellowDuck extends Duck {
    public YellowDuck() {//在此处实例化会飞也会叫的具体行为
        quackBehavior = new Quack();
        flyBeahavior = new FlyWIthWings();
    }

    public void display() {
        System.out.println("我是黄头鸭");
    }
}
